home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / cxmsg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-08  |  2.0 KB  |  64 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ACxMsg wrapper class                                                      *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_CxMsg_H
  12. #define ASAP_CxMsg_H
  13.  
  14. #include <New.h>
  15.  
  16. extern "C"
  17. {
  18.  #include <Proto/Commodities.h>
  19. }
  20.  
  21. class ACxMsg
  22. {
  23.  public:
  24.  inline APTR CxMsgData();
  25.  inline LONG CxMsgID();
  26.  inline ULONG CxMsgType();
  27.  inline void DisposeCxMsg();
  28.  inline void DivertCxMsg(CxObj *headObj, CxObj *returnObj );
  29.  inline void RouteCxMsg(CxObj *co );
  30. };
  31.  
  32. //-----------------------------------------------------------------------------
  33. APTR ACxMsg::CxMsgData ()
  34. {
  35.  return ::CxMsgData((CxMsg *)  this);
  36. }
  37. //-----------------------------------------------------------------------------
  38. LONG ACxMsg::CxMsgID ()
  39. {
  40.  return ::CxMsgID((CxMsg *)  this);
  41. }
  42. //-----------------------------------------------------------------------------
  43. ULONG ACxMsg::CxMsgType ()
  44. {
  45.  return ::CxMsgType((CxMsg *)  this);
  46. }
  47. //-----------------------------------------------------------------------------
  48. void ACxMsg::DisposeCxMsg ()
  49. {
  50.  ::DisposeCxMsg((CxMsg *)  this);
  51. }
  52. //-----------------------------------------------------------------------------
  53. void ACxMsg::DivertCxMsg (CxObj *headObj, CxObj *returnObj)
  54. {
  55.  ::DivertCxMsg ((CxMsg *) this, headObj, returnObj);
  56. }
  57. //-----------------------------------------------------------------------------
  58. void ACxMsg::RouteCxMsg(CxObj *co )
  59. {
  60.  ::RouteCxMsg((CxMsg *) this, co);
  61. }
  62.  
  63. #endif
  64.